package com.d3works.apps.base.service.imports;

import com.d3works.apps.base.db.ImportHistory;
import com.d3works.apps.base.service.imports.ImportCityServiceImpl.GEONAMES_FILE;
import com.d3works.exception.D3worksException;
import com.d3works.meta.db.MetaFile;
import java.io.IOException;
import java.util.Map;

public interface ImportCityService {

  /**
   * Import city
   *
   * @param typeSelect
   * @param dataFile
   * @return
   */
  public ImportHistory importCity(String typeSelect, MetaFile dataFile)
      throws D3worksException, IOException;

  public MetaFile downloadZip(String downloadFileName, GEONAMES_FILE geonamesFile)
      throws D3worksException;

  public Map<String, Object> importFromGeonamesAutoConfig(
      String downloadFileName, String typeSelect);

  public Map<String, Object> importFromGeonamesManualConfig(
      Map<String, Object> map, String typeSelect);
}
